home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
Pakiet multimedia
/
Linux LiveCD
/
GeeXboX 1.0 EN
/
geexbox-1.0-en.i386.iso
/
GEEXBOX
/
etc
/
init.d
/
76_mp-dvbcard
< prev
next >
Wrap
Text File
|
2006-06-21
|
799b
|
35 lines
#!/bin/sh
#
# configure MPlayer's DVB settings
#
# runlevels: geexbox, debug
echo "### Configuring MPlayer's DVB support ###"
CHANNELS_CONF=/etc/mplayer/channels.conf
if [ -f /var/dvbcard ]; then
. /var/dvbcard
# build DVB channels configuration file
if [ ! -f $CHANNELS_CONF ]; then
if [ -f /etc/dvb.conf ]; then
dvbscan -x 0 /etc/dvb.conf > $CHANNELS_CONF
if [ -s $CHANNELS_CONF ]; then
# remove non-coherent detected channels
grep -v "^\[.*\]:" $CHANNELS_CONF > /tmp/channels.conf
mv /tmp/channels.conf $CHANNELS_CONF
fi
fi
fi
fi
# no DVB card or no configured channels
if [ ! -f /var/dvbcard -o ! -s $CHANNELS_CONF ]; then
# remove DVB options from menu
sed -i 's/.*ok="set_menu dvb_sel".*//' /etc/mplayer/menu.conf
fi
exit 0